package com.dragon.refect.classload;

/**
 * 类的主动引用的演示案例demo1
 *
 * @author dragon
 * @since 2019/11/20
 */
public class MyTest6 {

    public static void main(String[] args) throws ClassNotFoundException {
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        Class<?> aClass = systemClassLoader.loadClass("com.dragon.refect.classload.CL");
        System.out.println("==========================");
        Class<?> aClass1 = Class.forName("com.dragon.refect.classload.CL");
        System.out.println(aClass1);
    }
}

class CL {
    static {
        System.out.println("CL static block");
    }
}
